SRCS:=$(wildcard *.c)
OBJECTS:=$(patsubst %.c, %.o, $(SRCS))
CC:=gcc
LIBS:= -lpthread -lcrypt
SERVER:=server

$(SERVER):$(OBJECTS)
	$(CC) $^ -o $@ $(LIBS) -g 

%.o:%.c
	$(CC) -c $^ -o $@ $(LIBS) -g
print:
	echo $(OBJECTS)
clean:
	rm -rf $(OBJECTS) 
